// dy-service/src/main/java/com/zjyd/dyservice/controller/TestController.java
package com.zjyd.dyservice.controller;

import com.zjyd.dyservice.feign.VideoServiceFeign;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/test")
public class TestController {

    @Autowired
    private VideoServiceFeign videoServiceFeign; // 注入Feign客户端

    @GetMapping("hello")
    public String test() {
        // 调用dy-video的业务处理接口
        return videoServiceFeign.processBusiness();
    }
}